package com.vogue.supplymall.payment.dto;

import java.io.Serializable;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 简单的公用输入参数基类
 * 
 * @author 崔岳
 *
 */
public class BaseSimpleInputParameter extends ValidationDTO implements Serializable{

	/**
	 * 验证有效值的字段集合
	 */
	@SuppressWarnings("serial")
	public static final Map<String, List<Object>> valueValidityMap = new HashMap<String, List<Object>>() {{
		 put("paytypeid", Arrays.asList((new Integer[]{5, 6, 7, 8, 20})));
		 put("ordfrom", Arrays.asList((new Integer[]{0, 1})));
	}};
	
	/**
	 * 验证必填字段的集合
	 */
	public static final List<String> requiredList = Arrays.asList((new String[]{
		"paytypeid", "orderid", "storeid"
	}));
	
	/**
	 * 支付方式（5：闪惠 6：微信 7：百度钱包 8：支付宝）
	 */
	private Integer paytypeid;
	/**
	 * 订单id(编号)
	 */
	private String orderid;
	/**
	 * 门店id
	 */
	private String storeid;
	/**
	 * 线上线下标识 0:线下 1:线上 默认线下
	 */
	private Integer ordfrom = 0;
	
	
	public Integer getPaytypeid() {
		return paytypeid;
	}

	public void setPaytypeid(Integer paytypeid) {
		this.paytypeid = paytypeid;
	}

	public String getOrderid() {
		return orderid;
	}

	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}

	public String getStoreid() {
		return storeid;
	}

	public void setStoreid(String storeid) {
		this.storeid = storeid;
	}

	public Integer getOrdfrom() {
		return ordfrom;
	}

	public void setOrdfrom(Integer ordfrom) {
		this.ordfrom = ordfrom;
	}

	@Override
	List<String> requiredFieldList(){
		return requiredList;
	}

	@Override
	Map<String, List<Object>> valueValidityMap() {
		return valueValidityMap;
	}

}
